package org.langqiao.oop;

public class Car {
	
	public String num;//车牌号
	public int inHour;//进入小时;
	public int inMinute;//进入分
	public int inSecond;//进入秒
	public int outHour;//出去小时
	public int outMinute;//出去分
	public int outSecond;//出去秒
	public int count;//倒车的次数
	public Car link;//队列的指针
	
	//构造方法
	public Car(String num) {
		this.num = num;
		this.inHour = 0;
		this.inMinute = 0;
		this.inSecond = 0;
		this.outHour = 0;
		this.outMinute = 0;
		this.outSecond = 0;
		Car link = null;
	}
	
	public Car() {
		this("");
	}
	
	public Car getLink() {
		return link;//成员方法得到指针
	}
	
	public void  setLink(Car n) {
		link = n;//成员方法，修改指针
		
	}
	
	public String getNum() {
		return num;//成员方法，获取车牌号
	}
}
